import request from '@/utils/request'

// 查询商业区列表
export function listBusinessCircle(query) {
  return request({
    url: '/manage/apartment/circle/list',
    method: 'get',
    params: query
  })
}

// 查询商业区详细
export function getBusinessCircle(businessCircleId) {
  return request({
    url: '/manage/apartment/circle/' + businessCircleId,
    method: 'get'
  })
}

// 新增商业区
export function addBusinessCircle(data) {
  return request({
    url: '/manage/apartment/circle',
    method: 'post',
    data: data
  })
}

// 修改商业区
export function updateBusinessCircle(data) {
  return request({
    url: '/manage/apartment/circle',
    method: 'put',
    data: data
  })
}

// 删除商业区
export function delBusinessCircle(businessCircleId) {
  return request({
    url: '/manage/apartment/circle/' + businessCircleId,
    method: 'delete'
  })
}
